<template>
  <div style="margin-top: 10px">
    <el-row :gutter="20" type="flex">
      <el-col :span="6">
        <el-input
          placeholder="请输入名称"
          v-model="listQueryIn.name"
          size="small"
          clearable
        ></el-input>
      </el-col>
      <el-col :span="6">
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="refreshList()"
          >搜索</el-button
        >
        <el-button
          type="primary"
          size="small"
          icon="el-icon-plus"
          @click="handleAdd()"
          >新增</el-button
        >
      </el-col>
    </el-row>
  </div>
</template>
<script>
import Bus from '@/utils/bus.js'
export default {
  data() {
    return {
      listQueryIn: {
        name: '',
      },
    }
  },
  methods: {
    refreshList() {
      Bus.$emit('refreshFlowList', this.listQueryIn)
    },
    handleAdd() {
      Bus.$emit('showDialogFlowAdd')
    },
  },
}
</script>